package com.hqyj.mall.xiaomimall.service;

import cn.hutool.db.sql.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.mall.xiaomimall.entity.OrderMain;
import com.hqyj.mall.xiaomimall.vo.Cart;

import java.util.List;

public interface OrderMainService extends IService<OrderMain> {


    //生成订单主子表记录
    public OrderMain generateNewOrder(Cart cart) throws Exception;

    public OrderMain modifyPayStatus (String oid) throws Exception;

    //根据用户编号查询用户订单列表
    public List<OrderMain> queryOrderMainListByUid(Integer uid);
}
